package com.biodiv.common.message;

import com.biodiv.common.instance.ServiceInstance;

/**
 *@Author: tianquan
 *@date: 2024-11-03  10:33
 *@Description: 服务注册消息
 */
public class ServiceRegistrationMessage extends Message {

    private ServiceInstance serviceInstance;

    public ServiceRegistrationMessage(ServiceInstance serviceInstance) {
        this.serviceInstance = serviceInstance;
    }

    public ServiceInstance getServiceInstance() {
        return serviceInstance;
    }

    @Override
    public int getMessageType() {
        return Message.ServiceRegistrationMessage;
    }

}
